cmake_minimum_required(VERSION 3.10)
project(MNN_TEST)
set(CMAKE_BUILD_TYPE Debug)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
add_compile_options(-Wall)
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fno-omit-frame-pointer -fsanitize=address")
set(CMAKE_LINKER_FLAGS_DEBUG "${CMAKE_LINKER_FLAGS_DEBUG} -fno-omit-frame-pointer -fsanitize=address")

find_package(OpenCV 4 REQUIRED)
if (OpenCV_FOUND)
    message(STATUS "OpenCV library Status:")
    message(STATUS "    Version: ${OpenCV_VERSION}")
    message(STATUS "    Include Path: ${OpenCV_INCLUDE_DIRS}")
endif ()

add_subdirectory(para)
add_subdirectory(modules)

add_executable(infer main.cpp)
target_link_libraries(
        infer
        RSVideoCapture
        feature
        Yolo
        Parameter
)